<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-22
  Time: 14:04:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<html>
<head><title>连接管理</title></head>
<body>
<a href="/admin/linkManage.do?editForm">新增链接</a>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center width="90%">
<tr>
    <td>名称</td>
    <td>分类</td>
    <td>链接</td>
    <td>排序</td>
    <td>操作</td>
</tr>
<c:forEach items="${actionBean.links.elements}" var="link">

        <tr>
            <td class=catStyle width=15%>
                ${link.name}
            </td>
            <td class=catStyle width=15%>
                ${link.catalog.name}
            </td>
            <td class=catStyle width=40%>
                ${link.url}
            </td>
            <td class=catStyle width=10%>
                ${link.orders}
            </td>
            <td class=catStyle width="20%">
                <a href="/admin/linkManage.do?editForm&linkId=${link.id}">修改</a>
                |<a href="/admin/linkManage.do?deleteLink&linkId=${link.id}">删除</a>
            </td>
        </tr>


</c:forEach>
    </table>
</body>
</html>